/*
 * Copyright 2016-2017 TVI Go Easy.
 * Created on 2017/9/28 14:26
 */
package com.gitee.mechanic;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 请在此写下该类的说明
 *
 * @author mechanic
 */
@SpringBootApplication
@EnableTransactionManagement(proxyTargetClass = true)
public class StartupTestApplication implements CommandLineRunner {

    @Value("${spring.output.ansi.enabled}")
    private String ansi;

    public static void main(String[] args) {
        SpringApplication.run(StartupTestApplication.class, args);
    }

    /**
     * Callback used to run the bean.
     *
     * @param args incoming main method arguments
     * @throws Exception on error
     */
    @Override
    public void run(String... args) throws Exception {
        System.out.println(ansi);
    }
}
